package com.cn.byjk.service;

import com.cn.byjk.mapper.ForeignExchangeMapper;
import com.cn.byjk.model.ForeignExchange;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * @author zhangdianzhi
 * @version v1.0
 * @description 外汇
 * @date 2022/1/7 16:09
 */
@Service
public class ForeignExchangeService {

    @Autowired
    private ForeignExchangeMapper foreignExchangeMapper;


    public BigDecimal getMoney(Long userid) {
        ForeignExchange fe = foreignExchangeMapper.selectForeign(userid);
        return fe.getMoney();
    }
}
